/* 瀑布流容器样式 */
.waterfall {
  column-count: 7; /* 默认7列布局 */
  column-gap: 12px; /* 列间距 */
  padding: 16px; /* 容器内边距 */
  min-height: 100vh; /* 最小高度铺满视口 */
}

/* 图片卡片样式 */
.imageCard {
  break-inside: avoid; /* 防止卡片被分割到不同列 */
  margin-bottom: 12px; /* 卡片间距 */
  position: relative;
  background: #fff;
  border-radius: 8px; /* 卡片圆角 */
  overflow: hidden; /* 隐藏溢出内容 */
}

/* 图片包装器样式 */
.imageWrapper {
  position: relative;
  width: 100%;
  background: #f5f5f5; /* 图片加载前的背景色 */
  border-radius: 8px 8px 0 0; /* 上方圆角 */
  overflow: hidden;
}

/* 图片本身的样式 */
.cardImage {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 保持图片比例填充容器 */
  display: block;
}

/* 滑动高亮效果 - 只在loading时显示 */
.loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  transform: skewX(-25deg);
  animation: shine 1.5s infinite;
  z-index: 1;
}

@keyframes shine {
  0% {
    left: -100%;
  }
  100% {
    left: 200%;
  }
}

.loadingMore {
  width: 100%;
  padding: 24px 0;
  text-align: center;
  background: transparent;
  clear: both;
  font-size: 14px;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.loadingMore :global(.ant-spin-dot) {
  font-size: 20px;
}

.cardContent {
  padding: 8px 12px;
}

.cardTitle {
  margin: 0;
  font-size: 14px;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.imagePlaceholder {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 4px;
  z-index: 1;
}

.imagePlaceholder :global(.ant-spin) {
  color: #fff;
}

.skeletonItem {
  break-inside: avoid;
  margin-bottom: 12px;
  background: #fff;
  padding: 8px;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 响应式布局断点 */
@media screen and (max-width: 1600px) {
  .waterfall {
    column-count: 6; /* 1600px以下显示6列 */
  }
}

@media screen and (max-width: 1400px) {
  .waterfall {
    column-count: 5; /* 1400px以下显示5列 */
  }
}

@media screen and (max-width: 1200px) {
  .waterfall {
    column-count: 4; /* 1200px以下显示4列 */
  }
}

@media screen and (max-width: 900px) {
  .waterfall {
    column-count: 3; /* 900px以下显示3列 */
  }
}

@media screen and (max-width: 600px) {
  .waterfall {
    column-count: 2; /* 600px以下显示2列 */
  }
}

@media screen and (max-width: 400px) {
  .waterfall {
    column-count: 1; /* 400px以下显示1列 */
  }
} 